package jnpf.engine.custom.engine;

import jnpf.engine.custom.event.logger.ElasticSearchEventLogger;
import org.flowable.spring.SpringProcessEngineConfiguration;

public class CustomSpringProcessEngineConfiguration extends SpringProcessEngineConfiguration {
    @Override
    public void initDatabaseEventLogging() {
        if(enableDatabaseEventLogging){
            getEventDispatcher().addEventListener(new ElasticSearchEventLogger(clock,objectMapper));
        }
    }
}
